package com.migo.defence;


/**
 * Created by Administrator on 2016/9/14.
 */
public enum RtCode {
    Success(0, "000000"),//操作成功
    Error(-1, "100001"),//操作失败
    RtNull(2, "100002"),//请求无数据
    ServerError(3, "100000"),//服务器异常
    EmailExists(4, "000001"),// 邮箱已存在
    PasswordError(5, "000002"),//密码错误
    ReqParamIsNull(6, "000003"),// 请求参数不合法
    AuthCodeDated(7, "000004"),//验证码已过期
    AuthCodeError(8, "000005"),//验证码错误
    EmailSendFail(9, "000006"),//邮件发送失败，请重试
    PhoneExists(10, "000007"),//手机号已存在
    IDOrPassWordError(11, "000008"),//账号或密码错误
    IDNotExists(12, "000009"),//账号不存在（手机号或者邮箱）
    OriginalPasswordError(13, "000010"),//原密码错误
    UserNotLogin(14, "000011"),//用户未登陆
    ActivationTrue(15, "000012"),//已激活
    ActivationCodeIsNull(16,"000013"),//激活码为空
    ActivationCodeError(17,"000014");//激活码错误

    private final int code;
    private final String msg;

    private RtCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
